package edu.uni.dormitory.service;

import edu.uni.dormitory.bean.AccomodateApply;

import java.util.List;

/**
 * @author 郑伟森
 * @create 2019.05.01
 * @function 服务
 */
public interface AccommodateService{

    AccomodateApply selectAccommodateApplyById(Long id, Long childId);

    List<AccomodateApply> selectAccommodateApplyPageBySelf(Long loginId);

    List<AccomodateApply> selectAccommodateApplyPageByChild(Long childId);

    List<AccomodateApply> selectAccommodateApplyPageByCollege(Long collegeId);

    List<AccomodateApply> selectAccommodateApplyPageByArea(String areaId);

    AccomodateApply selectAccommodateApplyByIdWithInstructor(Long id, Long collegeId);

    AccomodateApply selectAccommodateApplyByIdWithSettlementCenter(Long id);

    int insertAccommodateApply(AccomodateApply accomodateApply, Long byWho);

    int updateAccommodateApplyWithFamilyHead(Long applyId, Byte agree, Long loginId);

    int updateAccommodateApplyWithInstructor(Long applyId, Byte agree, Long loginId);

    String selectAccommodateStatusByApplyId(Long applyId);

    List<AccomodateApply> selectAccommodateApplyList();

    int updateAccommodateApplyWithCenter(Long applyId, Byte agree, Long loginId);
}
